package efg;

public class SwitchPeriod {
	private Train train;
	private Integer start;
	private Integer end;
	
	public SwitchPeriod(Train train, Integer start, Integer end ){
		assert (train != null);
		assert (start >= 0);
		assert (end > 0);
		assert (start < end);
		
		this.train = train;
		this.start = start;
		this.end = end;		
	} 
	
	public Train getTrain(){
		return train;
	}
	
	public int getStart(){
		return start;
	}
	
	public int getEnd(){
		return end;
	}
}
